import * as Types from './mutation-types'

export const playSong = ({commit},{list,index}) => {
  commit(Types.SET_SEQUENCE_LIST,list) //顺序播放列表
  commit(Types.SET_PLAYLIST,list) //播放列表
  commit(Types.SET_CURRENT_INDEX,index) //索引
  commit(Types.SET_PLAY_MODE,true) //开始播放
  commit(Types.SET_FULL_SCREEN,true) //全屏
}
